<link href="estilo.css" rel="stylesheet" type="text/css">
<br>
<script language="JavaScript1.2">
<!--
function DoPrinting(){
if (!window.print){
alert("Use o Netscape  ou Internet Explorer \n nas vers&otilde;es 4.0 ou superior!")
return
}
window.print()
}
//-->
      </script>
	  <div style="margin-left:5px;">
            <form name="form1" method="post" action="">
      <table width="700" cellpadding="0" cellspacing="0" bgcolor="#E5E6C4">
        <tr>
          <td width="337"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>&nbsp;&nbsp;ROTEIROS</strong></font></td>
          <td width="131">&nbsp;</td>
          <td width="145" align="center">&nbsp;</td>
          <td width="85" align="center">&nbsp;</td>
        </tr>
      </table>
        </form>    
<? if(@$_GET['idroteiro']){?>
<table width="700" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
	</td>
  </tr>
  <? if($LstRoteiroTodo->cmp[0]['arquivo']!=""){?>
  <tr>
    <td align="right" valign="top"><img src="imagem/icoword.JPG" width="18" height="18" align="absmiddle" /> <a href="admin/pics/arquivos/<?=$LstRoteiroTodo->cmp[0]['arquivo'];?>" target="_blank">Baixar Arquivo</a></td>
  </tr>
  <? }?>
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;">
		<?=$LstRoteiroTodo->cmp[0]['chamada'];?>	</td>
  </tr>
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;"><B>ROTEIRO</B></td>
  </tr>
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;">
		<?=$LstRoteiroTodo->cmp[0]['roteiro'];?>	</td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;padding:5px;" bgcolor="#E5E6C4">
		<?=$LstRoteiroTodo->cmp[0]['valor'];?>	</td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
  
  <tr>
    <td valign="top" style="font-size:11px; font-family:Tahoma;">
		<?=$LstRoteiroTodo->cmp[0]['servicos'];?>	</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<?}?>
<table width="700">
	<tr>
    <td bgcolor="#FFFFFF">
	
	<div style="font-size:11px;font-face:Verdana;">
	</div>
	<hr size="1">
	
	</td>
  </tr>
</table>
</div>
<div style="margin-left:10px;width:700px;margin-bottom:15px;">
	<?php for($x=0;$x<count($LstRoteiro->cmp);$x++){ //for($x=0;$x<6;$x++){ 
		$idroteiro = $LstRoteiro->cmp[$x]['idroteiro'];
		$chamada = substr($LstRoteiro->cmp[$x]['chamada'],0,160);
		$arquivo = $LstRoteiro->cmp[$x]['arquivo'];
	?>
	<div style="width:220px;margin:3px;height:75px;float:left;border:solid 0px #cccccc;">
		<table width="220" cellspacing="0" cellpadding="0">
			<tr>
			  <td bgcolor="#D5CEA8" style="height:75px;padding:5px;color:#000000;" valign="top"><a href="home.php?pagina=roteiro_conteudo&idroteiro=<?=$idroteiro;?>" style="color:#000000;font-size:10px;"><?=$chamada;?>...</a></td>
		  </tr>
			<tr>
				<td bgcolor="#ECE9D8">
					<?php if($arquivo!=""){?>
						<a href="admin/pics/arquivos/<?=$arquivo;?>" target="_blank">
						<img src="imagem/icoword.JPG" align="absmiddle" border="0" /> Baixar anexo
						</a>
					<? }else{?>
						<span style="color:#666666;">&nbsp;Sem anexo</span>
					<? }?>
				</td>
			</tr>
	  </table>
	</div>
	<? }?>
</div>
<div style="clear:both;height:30px;">&nbsp;</div>